package cate.game.event.guild;

import cate.game.event.GameEvent;
import cate.game.res.MixRes;
import cate.game.role.Role;
import cate.game.role.RoleDependent;
import cate.game.role.res.guild.po.GuildPO;
import lombok.Getter;
import lombok.Setter;

public class GuildAchieveTaskEvent extends RoleDependent implements GameEvent {

    @Getter
    @Setter
    private final GuildPO guild;

    @Getter @Setter
    private MixRes reward;

    @Getter @Setter
    private byte pos;


    public GuildAchieveTaskEvent(Role role, GuildPO guild, MixRes reward) {
        super(role);
        this.guild = guild;
        setReward(reward);
        setPos(role.getRes().guild.getGuild().member.getMember(role.getUid()).performance.position);
    }
}
